@mixin form-control-validation($text-color: #555, $border-color: #ccc, $background-color: #f5f5f5) {

  .help-block,
  .control-label,
  .radio,
  .checkbox,
  .radio-inline,
  .checkbox-inline,
  &.radio label,
  &.checkbox label,
  &.radio-inline label,
  &.checkbox-inline label {
    color: $text-color;
  }

  .form-control {
    border-color: $border-color;

    &:focus {
      border-color: $brand-primary;
    }
  }

  .input-group-addon {
    color: $text-color;
    background-color: $background-color;
    border-color: $border-color;
  }

  // Optional feedback icon
  .form-control-feedback {
    color: $text-color;
  }
}

@mixin form-control-focus($color: $input-border-focus) {
  $color-rgba: rgba(red($color), green($color), blue($color), .6);

  &:focus {
    border-color: $color;
  }
}